// 自动生成模板WmsWareOrderTask
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// wmsWareOrderTask表 结构体  WmsWareOrderTask
type WmsWareOrderTask struct {
	Id              *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                 //id
	OrderId         *int       `json:"orderId" form:"orderId" gorm:"comment:order_id;column:order_id;size:19;"`                      //order_id
	OrderSn         *string    `json:"orderSn" form:"orderSn" gorm:"comment:order_sn;column:order_sn;size:255;"`                     //order_sn
	Consignee       *string    `json:"consignee" form:"consignee" gorm:"comment:收货人;column:consignee;size:100;"`                     //收货人
	ConsigneeTel    *string    `json:"consigneeTel" form:"consigneeTel" gorm:"comment:收货人电话;column:consignee_tel;"`                  //收货人电话
	DeliveryAddress *string    `json:"deliveryAddress" form:"deliveryAddress" gorm:"comment:配送地址;column:delivery_address;size:500;"` //配送地址
	OrderComment    *string    `json:"orderComment" form:"orderComment" gorm:"comment:订单备注;column:order_comment;size:200;"`          //订单备注
	PaymentWay      *bool      `json:"paymentWay" form:"paymentWay" gorm:"comment:付款方式【 1:在线付款 2:货到付款】;column:payment_way;"`         //付款方式【 1:在线付款 2:货到付款】
	TaskStatus      *bool      `json:"taskStatus" form:"taskStatus" gorm:"comment:任务状态;column:task_status;"`                         //任务状态
	OrderBody       *string    `json:"orderBody" form:"orderBody" gorm:"comment:订单描述;column:order_body;size:255;"`                   //订单描述
	TrackingNo      *string    `json:"trackingNo" form:"trackingNo" gorm:"comment:物流单号;column:tracking_no;"`                         //物流单号
	CreateTime      *time.Time `json:"createTime" form:"createTime" gorm:"comment:create_time;column:create_time;"`                  //create_time
	WareId          *int       `json:"wareId" form:"wareId" gorm:"comment:仓库id;column:ware_id;size:19;"`                             //仓库id
	TaskComment     *string    `json:"taskComment" form:"taskComment" gorm:"comment:工作单备注;column:task_comment;size:500;"`            //工作单备注
}

// TableName wmsWareOrderTask表 WmsWareOrderTask自定义表名 wms_ware_order_task
func (WmsWareOrderTask) TableName() string {
	return "wms_ware_order_task"
}

type WmsWareOrderTaskRepo interface {
}

type WWmsWareOrderTaskUsecase struct {
	repo WmsWareOrderTaskRepo
	log  *log.Helper
}

func NewWWmsWareOrderTaskUsecase(repo GreeterRepo, logger log.Logger) *WWmsWareOrderTaskUsecase {
	return &WWmsWareOrderTaskUsecase{repo: repo, log: log.NewHelper(logger)}
}
